package com.design02_Structural.pattern10_facade.example01;

/**
 * @ClassName Facade
 * @Description TODO
 * @Author zhangjunhao
 * @DATE 2023/9/5 22:33
 */
public class Facade {

    private SubSystemA obj1 = new SubSystemA();
    private SubSystemB obj2 = new SubSystemB();
    private SubSystemC obj3 = new SubSystemC();
    public void method(){
        obj1.methodA();
        obj2.methodB();
        obj3.methodC();
    }

    public static void main(String[] args) {
        Facade facade = new Facade();
        facade.method();
    }

}
